#ifndef _STACK_H_
#define _STACK_H_

#include "ElemType.h"
#define MAXSIZE 5

class Stack {
public:
    Stack(); //初始化

    void Push(); //入栈
    void Pop();  //出栈

    bool IsEmpty(); //判断是否为空
    int Length();   //栈的长度
    void Clear();   //清空顺序栈
    ~Stack();       //销毁顺序栈

private:
    ElemType *top;
    ElemType *base;
    int size;
};

#endif